package cn.edu.gduf.luowowo.article.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Setter
@Getter
@AllArgsConstructor
public class DestinationDaysCondition {
    private Integer min;
    private Integer max;
//    private String theme;

    //攻略出行天数
    public static final HashMap<Integer, DestinationDaysCondition> dayTypeMap = new HashMap();
    //月份
//    public static final HashMap<Integer, DestinationDaysCondition> strategyMonthTypeMap = new HashMap();
    //主题
//    public static final HashMap<Integer, DestinationDaysCondition> themeTypeMap = new HashMap();

    static {
        //攻略天数做映射
        dayTypeMap.put(-1, null);
        dayTypeMap.put(1, new DestinationDaysCondition(2, 3));
        dayTypeMap.put(2, new DestinationDaysCondition(4, 5));
        dayTypeMap.put(3, new DestinationDaysCondition(6, 9));
        dayTypeMap.put(4, new DestinationDaysCondition(10, Integer.MAX_VALUE));

/*
        //月份做映射
        strategyMonthTypeMap.put(-1, null);
        strategyMonthTypeMap.put(1, new DestinationDaysCondition(1,2,null));
        strategyMonthTypeMap.put(2, new DestinationDaysCondition(2, 3,null));
        strategyMonthTypeMap.put(3, new DestinationDaysCondition(3, 4,null));
        strategyMonthTypeMap.put(4, new DestinationDaysCondition(4, 5,null));
        strategyMonthTypeMap.put(5, new DestinationDaysCondition(5, 6,null));
        strategyMonthTypeMap.put(6, new DestinationDaysCondition(6, 7,null));
        strategyMonthTypeMap.put(7, new DestinationDaysCondition(7, 8,null));
        strategyMonthTypeMap.put(8, new DestinationDaysCondition(8, 9,null));
        strategyMonthTypeMap.put(9, new DestinationDaysCondition(9, 10,null));
        strategyMonthTypeMap.put(10, new DestinationDaysCondition(10, 11,null));
        strategyMonthTypeMap.put(11, new DestinationDaysCondition(11, 12,null));
        strategyMonthTypeMap.put(12, new DestinationDaysCondition(12, Integer.MAX_VALUE,null));

        //出行时间做映射
        //themeTypeMap.put(null, null);
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"休闲"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"户外"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"文化"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"特别策划"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"美食"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"购物"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"自驾"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"节庆"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"观赏"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"摄影"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"建筑"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"滑雪"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"登山"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"星旅行"));
        themeTypeMap.put(1, new DestinationDaysCondition(null, null,"周边"));
*/

    }
}
